package com.wdl.modules.myhouse.service;

import com.wdl.modules.myhouse.common.Result;
import com.wdl.modules.myhouse.dto.CommentsDTO;
import com.wdl.modules.myhouse.entity.CommentsEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wdl.modules.myhouse.vo.CommentsVo;

import java.util.List;

/**
 * 评论表
 *
 * @author lucain sunlightcs@gmail.com
 * @since 1.0.0 2022-10-06
 */
public interface CommentsService extends IService<CommentsEntity> {
    /**
     * 根据文件id 获取根评论
     *
     * @param fileId
     * @return
     */
    List<CommentsVo> getComments(Long fileId);

    /**
     * 获取最新的评论
     * @param num
     * @return
     */
    List<CommentsVo> getLastestComment(Integer num);
}